package org.millioncall.yueyoga.admin.dao;

import java.util.Map;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.yueyoga.admin.model.OrderDetail;

public interface OrderDetailDAO {

	public OrderDetail findById(Integer id);

	public PaginatedList<OrderDetail> findInPage(Integer pageNo, Integer pageSize,	String[] paramNames, String[] paramValues);

	public PaginatedList<OrderDetail> findInPage(Integer pageNo, Integer pageSize);

	public int save(OrderDetail order);

	public int deleteByIds(String[] ids);

	public PaginatedList<OrderDetail> findAll();
	
	public PaginatedList<OrderDetail> findAllOrderDetail(Integer Id, Integer pageNo, Integer pageSize);
	
	public int update(OrderDetail od);
	
	/**
	 * 查询某个订单的详情
	 * @param start 第几页的第几条
	 * @param pageSize 每页显示几条
	 * @param map 条件集合，主要包含订单编号
	 * */
	public PaginatedList<OrderDetail> findByOrderId(Integer start, Integer pageSize, Map<String, Object> map);
}
